package com.sky.service;

import com.sky.dto.EmployeeDTO;
import com.sky.dto.EmployeeLoginDTO;
import com.sky.dto.EmployeePageQueryDTO;
import com.sky.entity.Employee;
import com.sky.result.Result;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;

public interface EmployeeService {

    /**
     * 员工登录
     * @param employeeLoginDTO
     * @return
     */
    Employee login(EmployeeLoginDTO employeeLoginDTO);


    /**
     * 新增员工操作
     * @param dto
     * @return
     */
    public Result addEmp(EmployeeDTO dto);


    /**
     * 分页查询员工
     * @return
     */
    public Result page(EmployeePageQueryDTO dto);


    /**
     * 启用禁用员工
     * @param status
     * @param id
     * @return
     */
    public Result updateStatus(Integer status , Long id);


    /**
     * 根据id单一查询员工
     * @param id
     */
    public Result getEmpById(Long id);

    /**
     *
     * @param dto
     * @return
     */
    public Result updateEmp(EmployeeDTO dto);


}
